package com.wyw.mapper;

import com.wyw.entity.UserT;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface IUserMapper {
    @Select("select * from user_t ut where ut.username = #{name}")
    UserT findByName(String name);

    @Select("select * from user_t ut where ut.id = #{id}")
    UserT findById(Integer id);
}
